import time


def get_live_days(birthday, ft):
    live_date = time.strptime(birthday, ft)
    # 返回出生日期时间戳
    born_time = time.mktime(live_date)
    # 当前时间戳减去生日日期时间戳
    live_time = time.time() - born_time
    # 将秒数转换为天数
    return '%d天' % (live_time // (24 * 60 * 60))


if __name__ == "__main__":
    year = int(input('请输入年份:'))
    month = int(input('请输入月份:'))
    day = int(input('请输入天数:'))
    input_time = '%d年%d月%d日' % (year, month, day)
    days = get_live_days(input_time, '%Y年%m月%d日')
    print('我活了%s啦' % days)
